﻿using System;
using System.Windows.Navigation;

namespace XamlMvp
{
    public class NavigationServiceWrapper : INavigationService
    {
        readonly NavigationService navigationService;

        public NavigationServiceWrapper(NavigationService navigationService)
        {
            this.navigationService = navigationService;
        }

        public bool CanGoBack
        {
            get { return navigationService.CanGoBack; }
        }

        public bool CanGoForward
        {
            get { return navigationService.CanGoForward; }
        }

        public bool Navigate(Uri uri)
        {
            return navigationService.Navigate(uri);
        }

        public void GoBack()
        {
            navigationService.GoBack();
        }

        public void GoForward()
        {
            navigationService.GoForward();
        }
    }
}
